<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0",

    maximum-scale="1.0",minimum-scale="1.0",user-scalable="no" >
    <title>Document</title>
    <style>
        /* 媒体查询一般从大到小 */
        /* 小于540px背景颜色变粉色 */
        @media screen and (max-width:539px){
            body{
                background-color: pink;
            }
        }
        /* 大于等于540px-970px背景颜色变色 */

        @media screen and (min-width:540px) {
            body{
                background-color: black;
            }
            
        }
        /* 大于等于970px背景颜色变色 */

        @media screen and (min-width:970px) {
            body{
                background-color: aqua;
            }
        }
    </style>
</head>
<body>
    
</body>
</html>